/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * CheckPaymentPanel.java
 *
 * Created on Feb 22, 2011, 12:14:43 PM
 */

package POSTApp;
import Payment.Payment;
import Payment.CheckPayment;

/**
 * GUI panel for processing check payments.
 * @author Rebecca Bettencourt
 */
public class CheckPaymentPanel extends PaymentPanel {

    /** Creates new form CheckPaymentPanel */
    public CheckPaymentPanel() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(0, 0, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(0, 0, Short.MAX_VALUE)
        );
    }// </editor-fold>//GEN-END:initComponents


    // Variables declaration - do not modify//GEN-BEGIN:variables
    // End of variables declaration//GEN-END:variables

    public Payment getPayment(float total) {
        return new CheckPayment(total);
    }

    public void clearPayment() {
        // nothing
    }
}
